package com.matuw.android.adapter;

import android.view.View;

import androidx.annotation.IdRes;


/**
 * @author Shihwan
 * @date 2022/4/15
 */
public interface ViewAdapter<VH extends ViewHolder> extends UniversalAdapter<View, VH> {

    void setOnItemViewClickedListener(OnItemViewClickedListener listener);

    ViewAdapter<VH> addClickViewIds(@IdRes int... ids);

    ViewAdapter<VH> setDebounceClickInterval(long interval);

    interface OnItemViewClickedListener {
        void onItemViewClick(ViewAdapter<?> adapter, View view, int position);
    }
}
